package cn.manyufun.myf.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.Date;
import java.util.List;

/**
 * Created by Xiao on 2018-02-10.
 */

public class ReplyBean implements Parcelable {
    public long ReplyId;
    public String Content;
    public int LikeNum;
    public float Score;
    public String UserName;
    public String UserImageUrl;
    public Date ReplyTime;
    public List<QuoteBean> QuoteReplyList;

    public class QuoteBean {
        public long ReplyId;
        public String Content;
        public String UserName;
    }

    protected ReplyBean(Parcel in) {
        ReplyId = in.readLong();
        Content = in.readString();
        LikeNum = in.readInt();
        Score = in.readFloat();
        UserName = in.readString();
        UserImageUrl = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(ReplyId);
        dest.writeString(Content);
        dest.writeInt(LikeNum);
        dest.writeFloat(Score);
        dest.writeString(UserName);
        dest.writeString(UserImageUrl);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ReplyBean> CREATOR = new Creator<ReplyBean>() {
        @Override
        public ReplyBean createFromParcel(Parcel in) {
            return new ReplyBean(in);
        }

        @Override
        public ReplyBean[] newArray(int size) {
            return new ReplyBean[size];
        }
    };
}
